package com.miplus.ccrm.core;

import com.alibaba.dashscope.app.Application;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.reactive.function.client.WebClient;

//@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.miplus.ccrm.*"})
@MapperScan("com.miplus.ccrm.core.mapper")
@EnableAsync
public class CcrmCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(CcrmCoreApplication.class, args);
    }
    @Bean
    public Application application() {
        return new Application();
    }
    @Bean
    public WebClient webClient() {
        return WebClient.create();
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}